/*
 * @Date: 2022-04-26 10:34:04
 * @LastEditors: wuyuxin
 * @LastEditTime: 2022-04-26 10:41:25
 * @FilePath: \Vue3-ts-cms\src\global\register-properties.ts
 * @description: 文件描述
 */
import { App } from 'vue'
import { formatUtcString } from '@/utils/date-format'
export default function registerProperties(app: App): void {
  app.config.globalProperties.$filters = {
    foo: () => {
      return 'foo'
    },
    formatUtcTime: (time: string) => {
      return formatUtcString(time)
    }
  }
}
